import request from '@/utils/request'
export const getTest = (params) => {
  return request({
    url: '/interview/questions',
    method: 'get',
    // get请求参数是params，post的请求体参数是data
    params
  })
}
export const submit = (data) => {
  return request({
    url: '/questions/submit',
    method: 'post',

    data
  })
}
export const getNewTest = (id) => {
  return request({
    url: '/questions/' + id,
    method: 'get'
    // get请求参数是params，post的请求体参数是data
  })
}
export const questionsComment = (data) => {
  return request({
    url: '/questions/comment',
    method: 'post',
    // get请求参数是data，post的请求体参数是data
    data
  })
}
export const questionsCollect = (id) => {
  return request({
    url: '/questions/collect',
    method: 'post',
    // get请求参数是data，post的请求体参数是data
    data: {
      id
    }
  })
}
